#ifndef USER_H
#define USER_H
#include<iostream>
#include<string>
using namespace std;
//User表的ORM类（映射数据库表User的字段，提交给业务层，实现数据层和业务层的分离）
class User{
public:
    User(int id=-1,string name="",string pwd="",string state="offline"){
        this->id = id;
        this->name = name;
        this->password = pwd;
        this->state = state;
    }
    void setId(int id){
        this->id = id;
    }
    void setName(string name){
        this->name = name;
    }
    void setPwd(string pwd){
        this->password = pwd;
    }
    void setState(string state){
        this->state = state;
    }
    int getId(){
        return id;
    }
    string getName(){
        return name;
    }
    string getPwd(){
        return password;
    }
    string getState(){
        return state;
    }
private:
    int id;
    string name;
    string password;  
    string state;

};
#endif